<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        var name = "6666"
        function demo() {
            console.log(this.name)
        }

        var obj = {
            name: "小刚"
        }

        // demo.call(obj)

        // demo.apply(obj)
        var demo1 = demo.bind(obj)
        demo1()

    </script>
</body>
</html>